package ie.timalb.chess.rules;

import ie.timalb.chess.Board;
import ie.timalb.chess.Movement;

public class RulesEngine {
	RuleSet rules;
	
	public RulesEngine() {
		//Initialize the rules
		rules = new RuleSet();
	}
	
	public boolean ValidateMovement (Movement movement, Board board){
		return (this.getRules().validateMovement(movement, board));
	}
	
	public RuleSet getRules() {
		return rules;
	}

	public void setRules(RuleSet rules) {
		this.rules = rules;
	}
}
